const db = wx.cloud.database()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    // list2: [
    //   { icon: 'http://qmeze9tg7.hn-bkt.clouddn.com/%E5%BC%80%E5%BF%83.png?e=1611240789&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:jTZ4fTlOLtzc79jUr5UFbS9Ex84=', text: '开心' },
    //   { icon: 'http://qmeze9tg7.hn-bkt.clouddn.com/%E7%94%9F%E6%B0%94.png?e=1611240807&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:lsh6KWYoJo1PHGrGtoxtMcEcpfw=', text: '生气' },
    //   { icon: 'http://qmeze9tg7.hn-bkt.clouddn.com/%E9%9A%BE%E8%BF%87.png?e=1611240822&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:9F3wroJ81jw9GQZ6DPl6y7UafQY=', text: '悲伤' },
    //   { icon: 'http://qmeze9tg7.hn-bkt.clouddn.com/%E6%97%A0%E8%81%8A.png?e=1611240839&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:Cx8gW4YdsA6U9MGJ9wuRZuSoCVI=', text: '无聊' },
    //   { icon: 'http://qmeze9tg7.hn-bkt.clouddn.com/%E5%BE%97%E6%84%8F.png?e=1611240850&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:0vd779nKhZeMcCwnM82IimHiaY8=', text: '得意' },
    //   { icon: 'http://qmeze9tg7.hn-bkt.clouddn.com/%E7%84%A6%E8%99%91.png?e=1611240859&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:u-vZd3R_GrKOvqikpFJXVFLRAE4=', text: '焦虑' },
    // ]
  },
  Color (e) {
    this.setData({
      idx:e.currentTarget.dataset.index,
    })
 },
  three:function(){
    wx.navigateTo({
      url: '/pages/indexRiji/indexRiji',
     })  },

     onLoad: function (options) {
      db.collection('LJL').get({
        success:res=>{
          console.log(res.data)
          this.setData({
            list2:res.data[0].list2,
          })
        }
      })
    }
})